/*
 * Login.h
 *
 *  Created on: 18/11/2013
 *      Author: fernando
 */

#ifndef LOGIN_H_
#define LOGIN_H_

#include "StringInput.h"
#include "../Interfaz/SDL.h"

class Login : public SDL {
public:
	Login();
	virtual ~Login();
	void logInit();
	void ubicarMouse(unsigned int x, unsigned int y);
	void setIngresaUsuario(void);
	void dibujar();
	void handleInput(SDL_Event&);
	void handleClick();
	void setIngresaOpcion();
	void pasarALogin();
private:
	SDL_Surface* fondo;
	StringInput user;
	StringInput pass;
	unsigned int posXMouse;
	unsigned int posYMouse;
	bool ingresaUsuario;
	bool pantallaInicial;
	bool opcion;//true: logueo, false: registro
};

#endif /* LOGIN_H_ */
